
import * as TYPE from './type.js'

export default {
  [TYPE.REPORT](state,playload) {
    Object.assign(state, {
      report_list:playload.list,
      report_total:playload.total,
      report_current_page:playload.currentPage,
      report_page_size:playload.pageSize,
    });
  },
  [TYPE.PROJECT](state,playload) {
    Object.assign(state, {
      project_list:playload.list,
      project_total:playload.total,
      project_current_page:playload.currentPage,
      project_page_size:playload.pageSize,
    });
  },
  [TYPE.RECEIPT](state,playload) {
    Object.assign(state, {
      receipt_list:playload.list,
      receipt_total:playload.total,
      receipt_current_page:playload.currentPage,
      receipt_page_size:playload.pageSize,
    });
  },
  [TYPE.WAGES](state,playload) {
    Object.assign(state, {
      wages_list:playload.list,
      wages_total:playload.total,
      wages_current_page:playload.currentPage,
      wages_page_size:playload.pageSize,
    });
  },
  [TYPE.GOODS](state,playload) {
    Object.assign(state, {
      goods_list:playload.list,
      goods_total:playload.total,
      goods_current_page:playload.currentPage,
      goods_page_size:playload.pageSize,
    });
  },
  [TYPE.GOODSRECORD](state,playload) {
    Object.assign(state, {
      goodsRecord_list:playload.list,
      goodsRecord_total:playload.total,
      goodsRecord_current_page:playload.currentPage,
      goodsRecord_page_size:playload.pageSize,
    });
  },
}
